import axios from '@/api/fetch';
//import * as types from './types';
import SERVER from '@/api/server';

//索赔扣款信息查询--经销商
//主页面查询
export const getListByPage = params => axios.post(`${SERVER.CLAIMFAC}/rPCmsClaimCb/getListByPage`,  params );
//导出
export const getListForExport = (params) => axios.post(`${SERVER.CLAIMFAC}/rPCmsClaimCb/getListForExport`, params, {
    responseType: 'blob'
  });
//下载中心导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
  export const getPartType = (params) => axios.get(`${SERVER.CLAIMFAC}/const/getBaseDataByType`, {params});

export const queryRpCmsClaimCb = (id, params) => axios.get(`${SERVER.CLAIMFAC}/rPCmsClaimCb/selectById/${id}`, { params });

export const newSave = params => axios.post(`${SERVER.CLAIMFAC}/rPCmsClaimCb/saveOne`,  params );
export const edit = params => axios.post(`${SERVER.CLAIMFAC}/rPCmsClaimCb/updateByPtId`,  params );


